<template>
 <div>
  {{str}}
</div>
</template>
<script setup lang='ts'>  
import { getCurrentInstance ,ref} from 'vue'
let str = ref('') 
const instance = getCurrentInstance()
instance?.proxy?.$Bus.on('on-xiaoheng', (param:string)=>{
  console.log(param);
  str.value = param

})
</script>
<style scoped lang='less'>
</style>